<!DOCTYPE html>
<html class="x-admin-sm">
{include file='public/header'}
<script src="/admin/xadmin/lib/layui/upload.js" charset="utf-8"></script>
<style>
    .layui-form-label{
        width: 110px;
    }
    .layui-input-block{
        margin-left: 140px;
    }
</style>
<body>
    <div class="x-body">
        <form class="layui-form" lay-filter="formAjax">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>投放账户ID
                </label>
                <div class="layui-input-block">
                    <input type="text" name="account_id" id="name" placeholder="请输入账户ID" required="required"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>用户行为源类型
                </label>
                <div class="layui-input-block" >
                    <select name="type">
                        <option value="">请选择</option>
                        <option value="1">微信小程序</option>
                        <option value="2">WEB</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    用户行为源名称
                </label>
                <div class="layui-input-block">
                    <input type="text" name="name" id="name" placeholder="请输入用户行为源名称" required="required"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>

            <input type="hidden" name="id" id="id" value="" />
            <button id="submitData" class="layui-btn" lay-submit lay-filter="submitData" style="display: none;" />

        </form>
    </div>
    <script>
        let params = {
            addUrl: '/cps/tencent/createDataSource',
        }
        form_ajax(params)
    </script>
</body>

</html>